--- ./src/lib/openjp2/opj_malloc.h.orig	2014-04-22 07:54:20.000000000 +0000
+++ ./src/lib/openjp2/opj_malloc.h	2014-04-25 20:54:43.000000000 +0000
@@ -102,8 +102,7 @@
     #define HAVE_POSIX_MEMALIGN
 	/* Linux x86_64 and OSX always align allocations to 16 bytes */
 	#elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
-		#define HAVE_MEMALIGN
-		#include <malloc.h>			
+		#include <stdlib.h>			
 	#endif
 #endif
 
